<?php
    //   Yii::app()->clientScript->registerScriptFile('js/app/contractCenter.js', CClientScript::POS_END); 
    Yii::app()->clientScript->registerScript('info', <<<HERE
   var type = '$type';
HERE
            , CClientScript::POS_END);
    Yii::app()->clientScript->registerScriptFile('js/app/contractRenewalCenter.js', CClientScript::POS_END);
?>
<style>

    #contractTypeStaticTable td,#contractTypeStaticTable th{
        padding:10px;
    }
    #contractTypeStaticTable th{
        font-weight: bolder;
    }
</style>
<div id="left-col">
    <?php
        $this->renderPartial('_side', array(
            'action' => 'pagelist',
        ));
    ?>

</div>

<div id="right-col">

    <div class="wrap">
        <div class="container">


            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">
                <h1>Contracts Renewal Center</h1>
                <br/>                

                <div id="contractStaticContainer">
                    <?php
                        $this->renderPartial('_renewalStatic', array(
                            'type' => $type
                        ));
                    ?>
                </div>
                <br/>
                <div class="clear"></div>
                <div id="contractStatusContainer" style="float:left;width:400px">
                    <label>Contract Status</label>
                    <?php echo CHtml::dropDownList('contractStatusDropDown', '2', CHtml::listData(ContractStatus::model()->findAll(), 'id', 'description')); ?>
                </div>
                <div id="billingStatusContainer" style="float:left;display:none;">
                    <label>Billing Status</label>
                    <?php echo CHtml::dropDownList('contractBillingStatusDropDown', '', Dropdowns::getList('C-BS')); ?>
                </div>
                <div class="clear"></div>
                <br/>
                <div id="contract-list"></div>

            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('/copyright'); ?>
</div> <!-- left-col -->